package com.sprucetec.live.common.dto.business;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sprucetec.live.common.dto.PageVo;
import com.sprucetec.live.entity.LiveUser;
import com.sprucetec.live.entity.LiveVideo;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName LiveUserDto
 * @Description:
 * @Author Kenny
 * @Date 2020/3/30
 **/
@Data
public class LiveUserDto extends LiveUser {

    private Integer pageSize;

    private Integer pageIndex;

    private String liveNo; // 在线人关联的视频编号

    public void judgePage() {
        if (pageIndex == null) {
            this.setPageIndex(1);
        }
        if (pageSize == null) {
            this.setPageSize(10);
        }
    }
}
